home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19960209-19960425 / 000394_news@columbia.edu _Thu Apr 11 11:03:09 1996.msg < prev    next >
Internet Message Format  |  1996-05-13  |  3KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id LAA06145 for <kermit.misc@watsun>; Thu, 11 Apr 1996 11:03:06 -0400 (EDT)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.5/8.7.3) id LAA13974 for kermit.misc@watsun; Thu, 11 Apr 1996 11:02:57 -0400 (EDT)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: Scripting question: How to capture the whole string from "input" query?
  8. Date: 11 Apr 1996 15:02:48 GMT
  9. Organization: Columbia University
  10. Lines: 42
  11. Message-ID: <4kj6uo$dke@apakabar.cc.columbia.edu>
  12. References: <4kg566$82r@cc.joensuu.fi>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14.  
  15. In article <4kg566$82r@cc.joensuu.fi>,
  16. Paul Hounsell <hounsell@cc.joensuu.fi> wrote:
  17. :     I am trying to automate a procedure of connecting to one of 
  18. : our old printers which is on a serial port of a terminal server. Let give
  19. : you give a quick idea of the process. When the user wants to connect to
  20. : the printer say PRINTER1, they:
  21. :     1: Start Kermit
  22. :     2: Press "c" and a couple of ENTERs to connect to the 
  23. :         terminal server.
  24. :     3: type "connect PRINTER1"
  25. :     If they are the only person using the printer then they 
  26. : are connected. However there are a couple of other possiblities.
  27. :     1. they are already connect to the printer
  28. :     2. they are connect to another computer.
  29. :     2a. they are connected to another computer at the wrong speed
  30. :     3. somebody else is connected to the printer
  31. :     4. the cable or server is not working.
  32. :     Most of the things I have work out but I can not figure out
  33. : how to capture the whole line containing "PRINTER1". I need to do this
  34. : for problem 1 in particular.
  35. :
  36. Look on pages 280-281 of "Using C-Kermit".  The variable containing the most
  37. recent 256 bytes read by INPUT commands is \v(input).  You can clear it
  38. with CLEAR INPUT.
  39.  
  40. There is also a new MINPUT command, documented in the ckcker.upd (ckermit.upd)
  41. file that comes with C-Kermit 5A(190), that lets you look for several strings
  42. at the same time.
  43.  
  44. :     Oh yes is there anyway to suppress all this output from the screen.
  45. : Many of my users are very computer phobic and I would like not to bother 
  46. : them with unnecessary information.
  47. Look on page 281 of "Using C-Kermit", read about the SET INPUT command.
  48.  
  49. - Frank
  50.